#!/bin/sh

# 复制项目的文件到对应docker路径，便于一键生成镜像。
usage() {
	echo "Usage: sh copy.sh"
	exit 1
}


# copy sql
echo "begin copy sql "
cp ../sql/ry_20210908.sql ./mysql/db
cp ../sql/ry_config_20211118.sql ./mysql/db

# copy html
echo "begin copy html "
cp -r ../xpp-ui/dist/** ./nginx/html/dist


# copy jar
echo "begin copy xpp-gateway "
cp ../xpp-gateway/target/xpp-gateway.jar ./xquant/gateway/jar

echo "begin copy xpp-auth "
cp ../xpp-auth/target/xpp-auth.jar ./xquant/auth/jar

echo "begin copy xpp-visual "
cp ../xpp-visual/xpp-monitor/target/xpp-visual-monitor.jar  ./xquant/visual/monitor/jar

echo "begin copy xpp-modules-system "
cp ../xpp-modules/xpp-system/target/xpp-modules-system.jar ./xquant/modules/system/jar

echo "begin copy xpp-modules-file "
cp ../xpp-modules/xpp-file/target/xpp-modules-file.jar ./xquant/modules/file/jar

echo "begin copy xpp-modules-job "
cp ../xpp-modules/xpp-job/target/xpp-modules-job.jar ./xquant/modules/job/jar

echo "begin copy xpp-modules-gen "
cp ../xpp-modules/xpp-gen/target/xpp-modules-gen.jar ./xquant/modules/gen/jar

